﻿Hoot.Api.Services.Folders = {

    getFolders : function (options) {
        $.post(Hoot.Config.getServerRootUrl() + 'Folder/GetFolders', { parentId: options.parentId }, function (json) {
            options.success(json);
        }, "json");
    },

    addFolder : function (options) {
        $.post(Hoot.Config.getServerRootUrl() + 'Folder/AddFolder', options.folder, function (json) {
            options.success(json);
        }, "json");
    }
};
